package com.lrkj.back.service.impl;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;
import com.lrkj.back.entity.Commodity;
import com.lrkj.back.mapper.CommodityMapper;
import com.lrkj.back.service.CommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by daiwe on 2018/5/11.
 */
@Service("commodityService")
public class CommodityServiceimpl extends ParentServiceImpl<Commodity> implements CommodityService {
    @Autowired
    private CommodityMapper commodityMapper;
    @Override
    public List findall() {
       return  commodityMapper.findall();

    }

    @Override
    protected DBInterface<Commodity> getDao() {
        return null;
    }

    @Override
    public int deleteByPrimaryKey(Integer integer) throws DBException {
        return 0;
    }

    @Override
    public int deleteByPrimaryKey(String s) throws DBException {
        return 0;
    }

    @Override
    public Commodity insert(Commodity commodity) throws DBException {
        return null;
    }

    @Override
    public Commodity insertSelective(Commodity commodity) throws DBException {
        return null;
    }

    @Override
    public Commodity selectByPrimaryKey(Integer integer) throws DBException {
        return null;
    }

    @Override
    public Commodity selectByPrimaryKey(String s) throws DBException {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Commodity commodity) throws DBException {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Commodity commodity) throws DBException {
        return 0;
    }
}
